package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 车务充值下发明细对象 erp_car_card_manage_detail_info
 *
 * @author cxl
 * @date 2024-09-08
 */
@TableName ("erp_car_card_manage_detail_info")
@ApiModel (value = "车务充值下发明细", description = "车务充值下发明细")
@Data
public class CarCardManageDetailEntity {

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 主表id */
        @ApiModelProperty ("主表id")
        @TableField ("relation_id")
        @Excel (name = "主表id")
        private String relationId;

        /** 子卡id */
        @ApiModelProperty ("子卡id")
        @TableField ("car_card_id")
        @Excel (name = "子卡id")
        private String carCardId;

        /** 编号 */
        @ApiModelProperty ("编号")
        @TableField ("card_code")
        @Excel (name = "编号")
        private String cardCode;

        /** 名称 */
        @ApiModelProperty ("名称")
        @TableField ("card_name")
        @Excel (name = "名称")
        private String cardName;

        /** 车牌号 */
        @ApiModelProperty ("车牌号")
        @TableField ("car_num")
        @Excel (name = "车牌号")
        private String carNum;

        /** 卡号 */
        @ApiModelProperty ("卡号")
        @TableField ("card_number")
        @Excel (name = "卡号")
        private String cardNumber;

        /** 充值金额 */
        @ApiModelProperty ("充值金额")
        @TableField ("recharge_amount")
        @Excel (name = "充值金额")
        private String rechargeAmount;

        /** 是否可用 */
        @ApiModelProperty ("是否可用")
        @TableField ("is_used")
        @Excel (name = "是否可用")
        private Integer isUsed;

        /** 创建人 */
        @ApiModelProperty ("创建人")
        @TableField ("create_by")
        @Excel (name = "创建人")
        private String createBy;

        /** 创建时间 */
        @ApiModelProperty ("创建时间")
        @TableField ("create_time")
        @JsonFormat(pattern = "yyyy-MM-dd")
        @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date createTime;

        /** 修改人 */
        @ApiModelProperty ("修改人")
        @TableField ("update_by")
        @Excel (name = "修改人")
        private String updateBy;

        /** 修改时间 */
        @ApiModelProperty ("修改时间")
        @TableField ("update_time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date updateTime;

}
